import request from '@/utils/request'


// 查询管控措施类型列表
export function listMeasureClassFy(query) {
    return request({
      url: '/risk/measure/classFy/list',
      method: 'get',
      params: query
    })
  }


// 新增管控措施类型列表
export function addMeasureClassFy(data) {
    return request({
      url: '/risk/measure/classFy',
      method: 'post',
      data: data
    })
  }  

  // 删除管控措施类型
export function deleteMeasureClassFy(classfyId) {
    return request({
      url: '/risk/measure/classFy/'+classfyId,
      method: 'delete',      
    })
  } 
  // 修改管控措施类型
export function updateMeasureClassFy(data) {
    return request({
      url: '/risk/measure/classFy',
      method: 'put',
      data: data
    })
  }
  // 查询管控措施详细信息
export function getMeasureClassFy(classFyId) {
    return request({
      url: '/risk/measure/classFy/' + classFyId,
      method: 'get'
    })
  } 
  // 查询管控措施树结构信息
export function getMeasureClassFyTree() {
    return request({
      url: '/risk/measure/classFy/classFyTree',
      method: 'get'
    })
  }  

// 查询管控措施详对象树结构信息
export function getMeasureClassFyObjectTree() {
    return request({
      url: '/risk/measure/classFy/classFyTreeObject',
      method: 'get'
    })
  }  


  //查询管控措施内容（附加管控措施类型）树状对象结构
  export function getMeasureAndClassFyTree() {
    return request({
      url: '/risk/measure/classFy/classFyTreeOrDescList',
      method: 'get'
    })
  }  